<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>
<body>
  <div id="app">
      <p>{{msg}}</p>

      <h2>{{names}}</h2>
      <button @click="btnClick()">button</button>
  </div>
<br>
  <script>
    let app = new Vue({
      el:"#app",
      data:{
           msg:'hello world',
           names:['shixu','jiuqi','suya']
       },
       methods:{
        // btnClick(){
        //     this,names[0]='moyi'
        // }
       //this.names.splice(0,1,"moyi")
       },
     })
   </script>
</body>
</html>